package model

import "time"

//机构模型
type Org struct {
	Id       int       `xorm:"pk"`
	ParentId int       `xorm:"int(11) notnull" form:"parentid" title:"父级ID"`
	Name     string    `xorm:"varchar(200) notnull" form:"orgname" binding:"required" title:"机构名称"`
	Remark   string    `xorm:"varchar(500) notnull" form:"remark" title:"备注"`
	Sortnum  int       `xorm:"smallint(6) notnull" form:"sortnum" title:"排序"`
	Level    int8      `xorm:"tinyint(4) notnull" form:"level" title:"资源层级"`
	State    bool      `xorm:"char(1) notnull" form:"state" title:"状态"`
	Created  time.Time `xorm:"created"`
	Updated  time.Time `xorm:"updated"`
}
